<template>
	<view class="one">
		<view class="nav">
			<!-- 消费记录列表 -->
			<view class="record-list">
				<view class="record-item" v-for="(item, index) in records" :key="index">
					<view class="record-left">
						<view class="record-title">{{item.title}}</view>
						<view class="record-time">{{item.time}}</view>
					</view>
					<view class="record-amount">-{{item.amount}}元</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				records: [
					{
						title: '大美汽车维修店-洗车',
						time: '2023.3.11 11:09',
						amount: '50'
					},
					{
						title: '大美汽车维修店-洗车',
						time: '2023.3.11 11:09',
						amount: '50'
					},
					{
						title: '大美汽车维修店-洗车',
						time: '2023.3.11 11:09',
						amount: '50'
					},
					{
						title: '大美汽车维修店-洗车',
						time: '2023.3.11 11:09',
						amount: '50'
					}
				]
			}
		},
		methods: {
			
		}
	}
</script>

<style>
page{
	background:#F7F7F7;
	}  
	.one{
		padding-top: 20rpx;
		height: 200rpx;
		background-color: #2D80F9;
	}
	.nav{
		width: 680rpx;
		background-color: white;
		min-height: 200rpx;
		height: auto;
		border-radius: 20rpx;
		margin: 0 auto;
		padding: 20rpx 0;
	}
	.record-list {
		padding: 0 30rpx;
	}
	.record-item {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 30rpx 0;
		border-bottom: 2rpx solid #F6F6F6;
	}
	.record-item:last-child {
		border-bottom: none;
	}
	.record-title {
		font-size: 28rpx;
		color: #333;
		margin-bottom: 10rpx;
	}
	.record-time {
		font-size: 24rpx;
		color: #999;
	}
	.record-amount {
		font-size: 32rpx;
		color: #333;
		font-weight: 500;
	}
</style>
